package com.feidee.bigdata.controller;

import com.feidee.bigdata.model.CommonResponse;
import com.feidee.bigdata.model.Payment;
import com.feidee.bigdata.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:CHQ
 * @Date:2020/4/14 16:21
 * @Description
 */
@RestController
public class ConsumerController {
    @Autowired
    private FeignService feignService;

    @RequestMapping("/select/{id}")
    public CommonResponse<Payment> select(@PathVariable("id") Long id) {
        return feignService.select(id);
    }
}
